package top.xtcoder.jdcbase.rbac.vo;

import java.util.List;

import org.nutz.json.Json;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import top.xtcoder.jdcbase.rbac.entity.Permission;

@ApiModel("政府端后台权限列表")
public class PermVo extends Permission {
	@ApiModelProperty("前段menu组件的title")
	private String title;
	
	@ApiModelProperty("有的按钮权限")
	private List<String> hasBtns;
	
	@ApiModelProperty("子权限")
	private List<PermVo> children;
	
	public List<PermVo> getChildren() {
		return children;
	}

	public void setChildren(List<PermVo> children) {
		this.children = children;
	}

	public String getTitle() {
		return getName();
	}

	public void setTitle(String title) {
		setName(title);
	}
	
	public List<String> getHasBtns() {
		return hasBtns;
	}

	public void setHasBtns(List<String> hasBtns) {
		this.hasBtns = hasBtns;
	}

	@Override
	public String toString() {
		return Json.toJson(this);
	}
}
